<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Remark extends Model
{
    protected $table = 'res_remarks';
    protected $primaryKey = 'rid';

    public $timestamps = false;

    protected $fillable = ['des','created','process_id','resources_id'];//开启白名单字段

    public function resource()
    {
        return $this->belongsTo('App\Resource','resources_id','rid');
    }

}
